package ezonsport.android.core.systemManage;

import java.util.Date;

import java.util.UUID;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

/**
 * 用户类
 * 
 * @author Administrator chenbei
 * @since 2012-6-8
 */
@DatabaseTable(tableName = "T_User")
public class User {
	@DatabaseField(generatedId = true)
	private long userID; // 用户ID，惟一
	@DatabaseField(canBeNull = false)
	private String email;// 邮箱，用户注册必填信息，不能为空
	@DatabaseField(canBeNull = false)
	private String pwd;// 密码，不能为空
	@DatabaseField
	private String nickName;// 昵称，惟一，注册后可设置，
	@DatabaseField
	private String gender;// 性别
	@DatabaseField
	private int age;// 年龄
	@DatabaseField
	private Date birthDate;// 出生日期
	@DatabaseField
	private int height;// 身高（单位：厘米）
	@DatabaseField
	private float weight;// 体重（单位：公斤）

	public User() {
	}

	public long getUserID() {
		return userID;
	}

	public void setUserID(long userID) {
		this.userID = userID;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPwd() {
		return pwd;
	}

	public void setPwd(String pwd) {
		this.pwd = pwd;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public Date getBirthDate() {
		return birthDate;
	}

	public void setBirthDate(Date birthDate) {
		this.birthDate = birthDate;
	}

	public int getHeight() {
		return height;
	}

	public void setHeight(int height) {
		this.height = height;
	}

	public float getWeight() {
		return weight;
	}

	public void setWeight(float weight) {
		this.weight = weight;
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("User [userID=");
		builder.append(userID);
		builder.append(", email=");
		builder.append(email);
		builder.append(", pwd=");
		builder.append(pwd);
		builder.append(", nickName=");
		builder.append(nickName);
		builder.append(", gender=");
		builder.append(gender);
		builder.append(", age=");
		builder.append(age);
		builder.append(", birthDate=");
		builder.append(birthDate);
		builder.append(", height=");
		builder.append(height);
		builder.append(", weight=");
		builder.append(weight);
		builder.append("]");
		return builder.toString();
	}

	
}
